<!--  -->
<template>
  <div class="footer-tabbar">
    <nav class="tabbar nav-class set-pc-style" :class="[fun.isIphoneX() ? 'iphoneXStyle' : '']">
      <router-link :to="fun.getUrl('courseMember')">
        <div class="flex tabBar-box">
          <div class="tabbar-icon iconfont icon-zb_zhiboing"></div>
          <div>数据</div>
        </div>
      </router-link>
      <router-link :to="fun.getUrl('groupMember')">
        <div class="flex tabBar-box">
          <div class="tabbar-icon iconfont icon-fontclass-huiyuanzhongxin"></div>
          <div>群会员</div>
        </div>
      </router-link>
      <router-link :to="fun.getUrl('classifyCourse')">
        <div class="flex tabBar-box">
          <div class="tabbar-icon iconfont icon-icon_dingdan_1"></div>
          <div>课程</div>
        </div>
      </router-link>
    </nav>
  </div>
</template>

<script>
//这里可以导入其他文件（比如：组件，工具js，第三方插件js，json文件，图片文件等等）
//例如：import 《组件名称》 from '《组件路径》';
export default {
  name: "",
  props: ["active"],
  //import引入的组件需要注入到对象中才能使用
  components: {},
  data() {
    return {};
  },
  //监听属性 类似于data概念
  computed: {},
  //监控data中的数据变化
  watch: {},
  //方法集合
  methods: {},
  //生命周期 - 创建完成（可以访问当前this实例）
  created() {},
  //生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {},
  activated() {} //如果页面有keep-alive缓存功能，这个函数会触发
};
</script>
<style scoped>
.footer-tabbar ::v-deep .van-tabbar {
  width: 375px;
  margin: 0 auto;
  right: 50%;
  left: auto;
  margin-right: -187.5px;
}

.iphoneXStyle ::v-deep .van-tabbar {
  bottom: 14px;
}
</style>
<style lang="scss" scoped>
.tabbar {
  display: grid;
  grid-template-columns: repeat(3, 33.3%);
  justify-content: space-between;
  align-items: center;
  position: fixed;
  z-index: 999;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3.4375rem;
  background: white;
  box-shadow: 0 -0.125rem 0.25rem 0 rgba(146, 146, 146, 0.1);

  .tabBar-box {
    justify-content: center;
    flex-direction: column;
  }

  .tabbar-icon {
    font-size: 19px;
    vertical-align: sub;
    padding-bottom: 4px;
  }

  .icon-zb_zhiboing {
    font-size: 19px;
  }

  .icon-fontclass-huiyuanzhongxin {
    font-size: 19px;
  }

  .icon-icon_dingdan_1 {
    font-size: 1.1875rem;
  }
}

.tabbar a {
  display: block;
  color: #6e6e79;
}

.tabbar a.active {
  color: var(--themeBaseColor);
}

.tabbar-placeholder {
  height: 3.4375rem;
  background: transparent;
}

.tabbar .circle-add {
  font-size: 2rem;
  color: #f15353;
}
</style>
